package yang.learn.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import yang.learn.entity.User;

import java.util.List;

/**
 * 为mybatis提供dao接口方法
 */

@Repository
public interface UserDao {

    public void add(User user);

    public void del(User user);

    public void change(User user);

    public List<User> queryAll();
    public User queryId(User user);
    public User queryAccount(User user);

}
